#include "Testwindow.h"
#include "ui_Testwindow.h"
#include "ScreenDrawing.h"

TestWindow::TestWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::TestWindow)
{
    ui->setupUi(this);

    setAttribute(Qt::WA_DeleteOnClose);

    connect(ui->testBtn, SIGNAL(clicked()), this, SLOT(buttonAction()));
}

void TestWindow::buttonAction() {
    NewWhiteBoard w;
    w.isVisible();
    w.show();
}

TestWindow::~TestWindow()
{
    delete ui;
}
